using QFramework.Framework.Util;
using UnityEditor;
using UnityEngine;
#if UNITY_EDITOR
#endif

namespace QFramework.Example.Util._5.概率函数
{
    /**
     * 数学工具-示例
     */
    public class MathUtilExample
    {
#if UNITY_EDITOR
        [MenuItem("QFramework/Example/Util/5.概率函数 和 随机函数", false, 5)]
#endif
        private static void MenuClicked()
        {
            Debug.Log(MathUtil.Percent(50));

            Debug.Log(MathUtil.GetRandomValueFrom(1, 2, 3));
            Debug.Log(MathUtil.GetRandomValueFrom("asdasd", "123123"));
            Debug.Log(MathUtil.GetRandomValueFrom(0.1f, 0.2f));
        }
    }
}